package pl.edu.agh.io.gpstracker.client.window;

import net.customware.gwt.dispatch.client.DispatchAsync;

import com.adeoservices.gwt.dispatch.spring.client.SpringDispatchServiceAsyncImpl;
import com.google.gwt.core.client.GWT;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.widgets.Window;

public abstract class GenericWindow extends Window {

	protected DispatchAsync dispatcher = GWT
			.create(SpringDispatchServiceAsyncImpl.class);

	public GenericWindow(int w, int h) {
		setModalMaskOpacity(80);
		setWidth(w);
		setHeight(h);
		setIsModal(true);
		setAlign(Alignment.CENTER);
		setCanDragResize(false);  	
		setShowModalMask(true);
		centerInPage();			
	}
}
